//
// Created by yyancy on 2019/12/18.
//

#include <string>
#include <iostream>

using namespace std;

bool is_palindrome(const string &s) {
    int first = 0;
    int last = s.length() - 1;
    while (first < last) {
        if (s[first] != s[last])return false;
        ++first;
        --last;
    }
    return true;
}

/**
 * 判断字符串是否是回文字符串
 * @return
 */
int main() {
    for (string s; cin >> s;) {
        cout << s << "is ";
        if (!is_palindrome(s))cout << "not";
        cout << " a palindrome\n";

    }
}